package com.jiazhong.example.project.shoppingcart.service;

import com.jiazhong.example.project.shoppingcart.bean.Carts;
import com.jiazhong.example.project.shoppingcart.util.JsonResult;

import javax.servlet.http.HttpSession;

public interface CartsService {
    JsonResult saveOrUpdate(Carts carts);

    JsonResult findByUserId(Integer userId);

    JsonResult changeCartNumber(int userId, int bookId, int number);

    JsonResult deleteById(int id);
    JsonResult deleteByBatch(String val);

    JsonResult deleteAll(HttpSession session);
}
